package com.chuangke.system.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.chuangke.system.service.SysCertificateService;

/**
 * 证书处理过期定时任务
 * 
 * @author admin
 *
 */
@Component("certificateTask")
public class CertificateTask {

	private static final Logger log = LoggerFactory.getLogger(CertificateTask.class);

	@Autowired
	private SysCertificateService sysCertificateService;

	public void handleExpired() {
		log.info("处理证书过期");
		sysCertificateService.handleExpired();
	}
}
